package com.bryce.springcloud.service;

import org.springframework.web.bind.annotation.RequestParam;
import java.math.BigDecimal;
/**
 * @author Bryce
 * @create 2021-04-13 13:26
 * @Description
 */
public interface AccountService {

    /**
     * 扣减账户余额
     * @param userId 用户id
     * @param money 金额
     */
    void decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}

